home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d27 / pgmrexit.arc / PGMREXIT.DOC < prev    next >
Text File  |  1991-12-04  |  2KB  |  40 lines

  1. USING THE PGMREXIT PROGRAM
  2.  
  3. The PGMREXIT program can be used as a programmer menu exit program to
  4. retrieve object create command parameter values from the object source and
  5. apply them to the create command string. To use this function specify
  6. EXITPGM(PGMREXIT.USRCMDLIB) on the DSPPGMMNU or CHGPGMDFT commands.
  7.  
  8. The create option source statements must be specified before any other
  9. source statements in the member, be in the form of a comment, and have the
  10. following format:
  11.  
  12. POSITIONS      VALUE
  13.  1 to  8       any characters
  14.  9 to 14       CRTOPT
  15. 15 to 15       any characters
  16. 16 to 65       any single parameter value in keyword format
  17. 66 to end      any characters
  18.  
  19. For example, the following CL source statements would be required to
  20. specify that the program be created specifying PUBAUT(*ALL) and TEXT('Text
  21. specified in source member.'):
  22.  
  23.  ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....
  24. /*      CRTOPT PUBAUT(*ALL)                                             */
  25. /*      CRTOPT TEXT('Text specified in source member.')                 */
  26.  
  27. The same options would be specified in as RPG source program as follows:
  28.  
  29. ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....
  30.      *  CRTOPT PUBAUT(*ALL)
  31.      *  CRTOPT TEXT('Text specified in source member.')
  32.  
  33. Any number of create option lines may be specified. The generated command
  34. string is syntax checked at submission time to ensure that all parameter
  35. values are valid.
  36.  
  37. If the create command is prompted from the programmer menu and a value
  38. specified on the prompt is also specified in the source, the value
  39. specified on the prompt will take precedence.
  40.